package metalink.admin;

import java.util.ArrayList;

import vo.mixed.CourseListVo;

import model.admin.GetBatchListMo;

import com.opensymphony.xwork2.ActionSupport;

public class GetBatchProfessorCourseList extends ActionSupport {
	int batch_id;
	int staff_id;
	ArrayList<CourseListVo> course_list;

	public int getBatch_id() {
		return batch_id;
	}

	public void setBatch_id(int batch_id) {
		this.batch_id = batch_id;
	}

	public int getProfessor_id() {
		return staff_id;
	}

	public void setProfessor_id(int professor_id) {
		this.staff_id = professor_id;
	}

	public ArrayList<CourseListVo> getCourse_list() {
		return course_list;
	}

	public void setCourse_list(ArrayList<CourseListVo> course_list) {
		this.course_list = course_list;
	}

	public String execute() throws Exception {
		GetBatchListMo courses = new GetBatchListMo();
		System.out.println(staff_id + " staff id ");
		course_list = courses.getBatchCourseList(getBatch_id(), 0,	getProfessor_id());
		return SUCCESS;
	}
}
